'use strict';

const BaseController = require('./base');

class BannerController extends BaseController {
  constructor(ctx) {
    super(ctx, 'cart');
  }
  async batchDelete() {
    const { ctx } = this;
    const ids = ctx.request.body.ids;
    const res = await ctx.service[this.serviceName].batchDelete(ids);
    ctx.success(res, 200);
  }
  async updateCartStatusAll() {
    const { ctx } = this;
    const data = ctx.request.body;
    const res = await ctx.service[this.serviceName].updateCartStatusAll(data);
    ctx.success(res);
  }
}

module.exports = BannerController;
